package cn.edu.wfu.libautobook.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("wfu_quartz")
public class Quartz implements Serializable {
    @TableId(type = IdType.AUTO, value = "jid")
    private Integer jid;
    private String jobName;
    private String jobClass;
    private Integer status;
    private String cronExpression;

    public Quartz(Integer jid, String jobName, String jobClass, Integer status, String cronExpression) {
        this.jid = jid;
        this.jobName = jobName;
        this.jobClass = jobClass;
        this.status = status;
        this.cronExpression = cronExpression;
    }

    public Quartz() {
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public Integer getJid() {
        return jid;
    }

    public void setJid(Integer jid) {
        this.jid = jid;
    }

    public String getJobClass() {
        return jobClass;
    }

    public void setJobClass(String jobClass) {
        this.jobClass = jobClass;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    @Override
    public String toString() {
        return "Quartz{" +
                "jid=" + jid +
                ", jobClass='" + jobClass + '\'' +
                ", status=" + status +
                ", cronExpression='" + cronExpression + '\'' +
                '}';
    }
}
